import axios from 'axios'
export default class leaseContract {
     getMaxid(){
         return axios.get('http://localhost/leaseContract')
     }

     saveLeaseContract(leaseContract,leaseContractDetails){
        const params = {
            leaseContract: leaseContract,
            leaseContractDetails: leaseContractDetails
        }
         return axios.post('http://localhost/leaseContract',params)
     }
     //查询合同信息
     getLeaseContract(args){
         return axios.get('http://localhost/leaseContract/getLeaseContract',{params:args})
     }
     //删除合同信息
     delLeaseContract(id){
          return axios.delete(`http://localhost/leaseContract/${id}`);
     }
}